package smashedapples.stocktwits
{
	import smashedapples.core.ValueObject;
	
	[Bindable]
	public class StockTwitVO extends ValueObject
	{
		public function StockTwitVO( data:* = null )
		{
			super( data );
		}
		
		public var avatar_url:String;
		public var source:String;
		public var status_id:String;
		public var stocks:Array = [];
		public var tweet_datetime:String;
		public var tweet_text:String;
		public var twitter_user_id:String;
		public var twitter_username:String;
		
		
		[Bindable("stocksChanged")]
		public function get stockList():String
		{
			var stocks:String = "";
			for each( var stock:String in this.stocks )
			{
				stocks = stocks + stock + ",";
			}
			
			stocks = stocks.slice( 0, -1 );
			
			return stocks;
		}
		
	}
}